package com.hotel.mapper;

import com.hotel.pojo.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {

    List<Role> getAll();

    void addRole(Role role);

    void updateRole(Role role);

    void deleteRoleById(int id);

    Role selectRoleById(int id);
}
